package com.liu.mapper;

import com.liu.bean.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {


    /**
     * 保存用户
     * @param user
     * @return
     */
    int save(User user);

    /**
     * 跟据用户名查询用户信息
     * @param username
     * @return
     */
    User queryByUsername(String username);


}
